﻿using System;
using System.Collections.Generic;
using System.Text;

using Microsoft.Extensions.DependencyInjection;

namespace Jack.SequentialGuid
{
	/// <summary>
	/// 
	/// </summary>
	public static class SequentialGuidServiceCollectionExtensions
	{
		/// <summary>
		/// 
		/// </summary>
		/// <param name="services"></param>
		/// <returns></returns>
		public static IServiceCollection AddSequentialGuid(this IServiceCollection services)
		{
			services.AddTransient<IIdGenerator, SequentialIdGenerator>();
			services.AddScoped<IdGeneratorService>();

			return services;
		}
	}
}
